num=[5, 4, 4, 3, 6]
m=int(input())
p=0
o=0
if m>=max(num):
    for i in range(0,len(num)):
        n=m*len(num)
        o=o+num[i]
print(num)
print(n-o)
        


